package com.koudai.reader.util;

import java.util.HashMap;
import java.util.Map;

import android.os.Environment;

import com.koudai.reader.android.R;

public class Constant {
    
    public static final int HTTP_REQUEST_TIMEOUT_MS = 15 * 1000;

    public static Map<Integer, String> mainCategoryMapping = new HashMap<Integer, String>();
    
    public static Map<String, Integer> allCategoryMapping = new HashMap<String, Integer>();
    
    public static final String DIR = Environment.getExternalStorageDirectory() + "/koudai/";
    
    public static final String config_font_size = "config_font_size";
    public static final String config_space_size = "config_space_size";
    public static final String config_bg_type = "config_bg_type";
    
    public static final int config_font_size_1 = 12;
    public static final int config_font_size_2 = 16;
    public static final int config_font_size_3 = 20;
    public static final int config_font_size_4 = 24;
    public static final int config_font_size_5 = 28;
    
    
    public static final int config_space_size_small = 15;
    public static final int config_space_size_mid = 20;
    public static final int config_space_size_large = 25;
    
    public static final int config_bg_type_default = R.drawable.bg;
    public static final int config_bg_type_green = R.drawable.bg_green;
    public static final int config_bg_type_purple = R.drawable.bg_purple;
    public static final int config_bg_type_blue = R.drawable.bg_blue;
    public static final int config_bg_type_gray = R.drawable.bg_gray;
    
    public static Map<String, Integer> operation = new HashMap<String, Integer>();
    
    static {
        operation.put("bookshelf", -100);
        operation.put("search", -20);
        operation.put("bookupdate", -20);
        operation.put("vip_one", -1500);
        operation.put("vip_three", -4300);
        operation.put("vip_six", -8500);        
        operation.put("vip_twelve", -13500);                
        operation.put("sign", 10);
        operation.put("recharge_five", 500);
        operation.put("recharge_fifteen", 1500);
        operation.put("recharge_fifty", 5000);
        operation.put("recharge_hundred", 10000);
        operation.put("recharge_2hundred", 20000);
    }

    public static final String waps_key = "7431ba1805781174ee9b8169af37c750";
    
}
